package com.hnichr.ump.common.schedule.dto;

import com.hnichr.ump.common.schedule.Constants;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class RunResultDTO {

    private Constants.RunResult result;

    private String message;

    public static RunResultDTO success(){
        return new RunResultDTO(Constants.RunResult.SUCCESS,"success");
    }

    public static RunResultDTO empty(){
        return new RunResultDTO(Constants.RunResult.EMPTY,"empty");
    }


    public static RunResultDTO failed(String message){
        return new RunResultDTO(Constants.RunResult.FAILED,message);
    }
}
